package org.myblog.myblogserver.generator.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Collection;
import java.util.List;

//生成模板名
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class TableInfo {
    private String tableName;
    private String className;
    private String packageName;
    private List<ColumnInfo> columns;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @ToString
    public static class ColumnInfo{
        private String columnName;
        private String javaType;
    }

}
